//
//  CTV.h
//  Channltv
//
//  Main Channl.tv class (singleton)
//
//  Created by Bruno Keymolen on 7/5/07.
//  Copyright 2007 channl.tv. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "CTVSync.h"
#import "CTVConfig.h"
#import "CTVRootChannel.h"
#import "CTVChannel.h"


@interface CTV : NSObject {
@public
	CTVSync*	m_sync;
	CTVConfig*	m_config;

	NSMutableDictionary* m_rootChannels;
	
	NSMutableArray* m_myChannels;
	NSMutableArray* m_myTopChannels;
	BOOL m_channelsSynchronized;
	BRImageManager* m_imgman;
	
}


+(id)GetInstance;
-(void)setup;
//-(CTVChannel*)GetChannel;
-(NSMutableArray*)myChannels;
-(NSMutableArray*)myTopChannels;
-(BRImageManager*)imgman;
-(int)cacheImg:(NSString*)imgPath;
-(CGImageRef)getCGIImage:(NSString*)imgPath;

-(NSMutableDictionary*)rootChannels;



@end
